apiready = function(){
seajs.use(['../../V',"../../api","../../app","../../swiper"],function(V,$api,$app,Swiper){
	var vm = {
		el: '.big-img-wrap',
	  	data: {
			list: '',
			name: '',
			length: 0,
			activeIndex: 1
	  	},
	  	methods:{

	  	},
	  	mounted:function() {
	  		var self = this;
	  		$api.setTimeout(function(){
	  			var mySwiper = new Swiper('.swiper-container', {
			  		autoplay: 5000,
				    autoplayDisableOnInteraction : false,
				    direction: 'horizontal',
				    loop: false,
				    on: {
						slideChangeTransitionEnd: function(){
				          self.activeIndex = this.activeIndex + 1;
				        }
				    }

			  	});
	  		},1000);

	  		//--点击上面按钮返回
			$api.addEvt($api.dom('#btn-back'), 'click', function() {
	            api.closeWin();
	        });
	  	},
	  	created: function(){
	  		//console.log(JSON.stringify(api.pageParam.src))
	  		this.list = api.pageParam.src;
	  		this.name = api.pageParam.name;
	  		this.length = this.list.length;
	  	}
	};

	var even = function() {}
	var newVue = new Vue(vm);
	even();
});
}
